export function get_cookie(name) {
  return '54ba1cd95d2a8e043a81c7fbc568105fe1053d76'
  let cookie_arr = document.cookie.split(";");
  for (let i = 0; i < cookie_arr.length; i++) {
    let small_arr = cookie_arr[i].split("=");
    if (small_arr &&small_arr[0].replace(/^\s||\s$/,"") === name) {
      return small_arr[1];
    }
  }
  return false;
}

export function set_cookie(name, val, days=30) {
  let now = new Date().getTime();
  document.cookie = name + "=" + val + ";" + "expires=" + new Date((now + (1000 * 24 * 3600 * days))).toGMTString()+";path=/";
}
